/**
 * Copyright &copy; 2012-2013 <a href="httparamMap://github.com/someone/qs">qs</a> All rights reserved.
 */
package com.chain.qs.modules.biz.service;

import com.chain.qs.common.persistence.Page;
import com.chain.qs.common.service.CrudService;
import com.chain.qs.modules.biz.dao.EquipmentItemRecordCAGospell1kWSpDevDao;
import com.chain.qs.modules.biz.entity.Condition;
import com.chain.qs.modules.biz.entity.EquipmentItemRecordCAGospell1kWSpDev;
import com.chain.qs.modules.biz.entity.EquipmentItemRecordSuper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 日志Service
 * @author someone
 * @version 2014-05-16
 */
@Service
//@Transactional(readOnly = true)
public class EquipmentItemRecordCAGospell1kWSpDevService extends CrudService<EquipmentItemRecordCAGospell1kWSpDevDao, EquipmentItemRecordCAGospell1kWSpDev> {

	public Page<EquipmentItemRecordCAGospell1kWSpDev> findPage(Page<EquipmentItemRecordCAGospell1kWSpDev> page, EquipmentItemRecordCAGospell1kWSpDev entity, Condition condition) {
		entity.setTimeBegin(condition.getTimeBegin());
		entity.setTimeEnd(condition.getTimeEnd());
		entity.setSgroupId(condition.getSgroupId());
		if(condition.getGitemId()!=null && !condition.getGitemId().equals("")){
			entity.setGitemId((condition.getGitemId()));
		}
		entity.setRecordColumn(condition.getRecordColumn());
		return super.findPage(page,entity);
	}
	public List<EquipmentItemRecordCAGospell1kWSpDev> conditionList(EquipmentItemRecordSuper entity) {
		return dao.conditionList(entity);
	}
}
